# define _CRT_SECURE_NO_WARNINGS 1
#include "STackCode.h"

int main()
{
	Stack s;
	StackInit(&s);
	StackPush(&s,1);
	StackPush(&s,2);
	StackPush(&s,3);
	StackPush(&s,4);

	int top = StackTop(&s);
	printf("%d", top);
	StackPop(&s);

	StackPush(&s, 5);
	StackPush(&s, 6);

	while (StackEmpty(&s)!=0)
	{
		int top = StackTop(&s);
		printf("%d", top);
		StackPop(&s);
	}

	StackDestroy(&s);

	return 0;
}